<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:66:"/www/wwwroot/km/HM-faka-master/content/template/pisces/setting.php";i:1666941281;s:73:"/www/wwwroot/km/HM-faka-master/application/admin/view/layout/default.html";i:1666941281;s:70:"/www/wwwroot/km/HM-faka-master/application/admin/view/common/meta.html";i:1666941281;s:72:"/www/wwwroot/km/HM-faka-master/application/admin/view/common/script.html";i:1666941281;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<meta name="referrer" content="never">
<meta name="robots" content="noindex, nofollow">

<link rel="shortcut icon" href="<?php echo $site['ico']; ?>" />
<!-- Loading Bootstrap -->
<link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<?php if(\think\Config::get('fastadmin.adminskin')): ?>
<link href="/assets/css/skins/<?php echo \think\Config::get('fastadmin.adminskin'); ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
<?php endif; ?>

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config); ?>
    };
</script>

    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG && !\think\Config::get('fastadmin.multiplenav') && \think\Config::get('fastadmin.breadcrumb')): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <?php if($auth->check('dashboard')): ?>
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                    <?php endif; ?>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <form id="setting-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">应用</label>
        <div class="col-xs-12 col-sm-8">
            <div class="checkbox">
                <label><input name="row[apply][]" type="checkbox" value="pc" <?php if($active_template['pc'] == 'pisces'): ?>checked<?php endif; ?>>电脑</label>
                <label><input name="row[apply][]" type="checkbox" value="mobile" <?php if($active_template['mobile'] == 'pisces'): ?>checked<?php endif; ?>>手机</label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">首页风格</label>
        <div class="col-xs-12 col-sm-8">
            <?php echo build_radios('row[home_style]', ['card'=>'卡片', 'table'=>'表格'], empty($info['home_style']) ? 'card' : $info['home_style']); ?>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">首页分类</label>
        <div class="col-xs-12 col-sm-8">
            <?php echo build_radios('row[home_category]', ['normal'=>'显示', 'hidden'=>'隐藏'], empty($info['home_category']) ? 'normal' : $info['home_category']); ?>
        </div>
    </div>
    <div class="form-group">
        <label for="c-logo" class="control-label col-xs-12 col-sm-2">Logo</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-logo" data-rule="" class="form-control" size="50" name="row[logo]" type="text" value="<?php echo $info['logo']; ?>">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-logo" class="btn btn-danger plupload" data-input-id="c-logo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,svg" data-multiple="false" data-preview-id="p-logo"><i class="fa fa-upload"></i> 上传</button></span>
                    <span><button type="button" id="fachoose-logo" class="btn btn-primary fachoose" data-input-id="c-logo" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>
                </div>
                <span class="msg-box n-right" for="c-logo"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-logo"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">隐藏封面图</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-hidden_cover" name="row[hidden_cover]" type="hidden" value="<?php echo (isset($info['hidden_cover']) && ($info['hidden_cover'] !== '')?$info['hidden_cover']:0); ?>">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-hidden_cover" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success <?php echo empty($info['hidden_cover']) ? 'fa-flip-horizontal text-gray' : ''; ?> fa-2x"></i>
            </a>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">销量显示</label>
        <div class="col-xs-12 col-sm-8">
            <input  id="c-sales" name="row[sales]" type="hidden" value="<?php echo (isset($info['sales']) && ($info['sales'] !== '')?$info['sales']:0); ?>">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-sales" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success <?php echo empty($info['sales']) ? 'fa-flip-horizontal text-gray' : ''; ?> fa-2x"></i>
            </a>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">库存显示</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-stock" name="row[stock]" type="hidden" value="<?php echo (isset($info['stock']) && ($info['stock'] !== '')?$info['stock']:0); ?>">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-stock" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success <?php echo empty($info['stock']) ? 'fa-flip-horizontal text-gray' : ''; ?> fa-2x"></i>
            </a>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">公告</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-notice" class="form-control editor" name="row[notice]" style="height: 300px;"><?php echo (isset($info['notice']) && ($info['notice'] !== '')?$info['notice']:''); ?></textarea>
        </div>
    </div>






    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled"><?php echo __('OK'); ?></button>
            <button type="reset" class="btn btn-default btn-embossed"><?php echo __('Reset'); ?></button>
        </div>
    </div>
</form>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version']); ?>"></script>
    </body>
</html>
